package com.yuwei.module_patrol.model

import com.bw.lib_common.entity.Res
import com.bw.lib_common.entity.UserEntity
import com.bw.lib_common.model.BaseRepository
import com.bw.lib_http.OkHttpClientManager
import com.yuwei.http.entity.PatrolEntity
import com.yuwei.http.entity.PatrolPointsEntity
import com.yuwei.module_patrol.api.PatrolApiServer


class PatrolRepository : BaseRepository<PatrolApiServer>() {

    override fun createApiServer(): PatrolApiServer = OkHttpClientManager.retrofitInstance.create(
        PatrolApiServer::class.java)
   suspend fun getPatrolList(): Res<PatrolEntity>  = apiService.getPatrolList()
    suspend fun getPatrolPoints(): Res<PatrolPointsEntity>  = apiService.getPatrolPoints()

}
